package org.jeecg.modules.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.core.JsonProcessingException;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.entity.ProjectPictureInfo;
import org.jeecg.modules.entity.Serializable;
import org.jeecg.modules.service.ProjectPictureService;
import org.jeecg.modules.vo.ProjectOwnProfessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * auther:许英楠
 */
@RestController
@Slf4j
@RequestMapping(value = "/test123/jeecgDemo123",method = {RequestMethod.GET})
public class ProjectPictureController {
    @Autowired
    private ProjectPictureService projectPictureService;
    @GetMapping(value = "/hello123")
    public Result<List> hello(Serializable serializable) {
        Result<List> result = new Result<>();
        List<ProjectPictureInfo> list=projectPictureService.getTotal(serializable);//前端传来的参数
        result.setResult(list);
        return result;
    }
    @GetMapping(value = "/hello1234")
    public Result<List> hello() throws JsonProcessingException {
        Result<List> result = new Result<>();
        List<ProjectPictureInfo> list=projectPictureService.getTotall();//前端传来的参数
        result.setResult(list);
        return result;
    }

}
